package com.ruoyi.common.core.page;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@EqualsAndHashCode(callSuper = false)
@Data
public class PageResult<T> implements Serializable {
    @ApiModelProperty(value = "当前页")
    private Integer pageNum = 1;
    @ApiModelProperty(value = "每页条数")
    private Integer pageSize = 10;


    private Long total;
    private List<T> list = new ArrayList<>();

}
